#include "fileinfo.h"

FileInfo::FileInfo()
{
}

FileInfo::FileInfo(QString baseName_, QString hash_, quint64 size_)
{
    baseName = baseName_;
    hash = hash_;
    size = size_;
}



QDataStream & operator <<(QDataStream &stream, const FileInfo &obj)
{
    stream << obj.baseName << obj.hash << obj.size;
    return stream;
}

QDataStream & operator >>(QDataStream &stream, FileInfo &obj)
{
    stream >> obj.baseName >> obj.hash >> obj.size;
    return stream;
}
